package com.pox.guli.service.trade.feign;

import com.pox.guli.service.base.dto.CourseDto;
import com.pox.guli.service.trade.feign.fallback.CourseServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author PoX21s
 * @Date: 2022/1/6 15:06
 * @Version 1.0
 */

@Service
@FeignClient(value = "service-edu", fallback = CourseServiceFallBack.class)
public interface CourseService {

    @GetMapping(value = "/api/edu/course/inner/get-course-dto/{courseId}")
    CourseDto getCourseDtoById(@PathVariable(value = "courseId") String courseId);
}
